﻿<%@ Page Title="" Language="C#" MasterPageFile="ReconSite.Master" AutoEventWireup="true"
    CodeBehind="ReconHome.aspx.cs" Inherits="Recon.Portal.WebUI.ReconHome" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleHolder" runat="server">
    <title>Recon Home</title>
    <style type="text/css">
        .auto-style1 {
            width: 50%;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyHolder" runat="server">
    <center>
        <h3 id="ClientHeading" runat="server">Dashboard</h3>
    </center>
    <br />

    <table border="1" cellpadding="5" cellspacing="0" style="border-style: outset" width="100%">
        <tr>
            <td valign="top" class="auto-style1" align="center">
                <asp:Chart ID="BarChart" runat="server" Width="650" Height="350">
                    <Series>
                        <asp:Series Name="PendingInvoiceCount" IsVisibleInLegend="true" LegendText="Pending Invoices"></asp:Series>
                        <asp:Series Name="PendingInvoiceAmount" IsVisibleInLegend="true" LegendText="Value (INR in Lacs)"></asp:Series>
                    </Series>
                    <ChartAreas>
                        <asp:ChartArea Name="ChartArea1">
                        </asp:ChartArea>
                    </ChartAreas>
                </asp:Chart>
            </td>

            <td valign="top" style="width: 50%" align="center">
                <asp:Chart ID="LineChart" runat="server" Width="650" Height="350">
                    <Series>
                        <asp:Series Name="PendingInvoiceCount" IsVisibleInLegend="true" LegendText="Pending Invoices"></asp:Series>
                        <asp:Series Name="PendingInvoiceAmount" IsVisibleInLegend="true" LegendText="Value (INR in Lacs)"></asp:Series>
                    </Series>
                    <ChartAreas>
                        <asp:ChartArea Name="ChartArea1">
                        </asp:ChartArea>
                    </ChartAreas>
                </asp:Chart>
            </td>
        </tr>
        <tr>
            <td valign="top" class="auto-style1" align="center">
                <asp:GridView ID="BarChartDataGrid" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" ViewStateMode="Disabled" EnableViewState="False" OnRowDataBound="BarChartDataGrid_RowDataBound">
                    <Columns>
                        <asp:HyperLinkField DataTextField="Aging" HeaderText="Ageing Analysis of Pending Invoices" DataNavigateUrlFields="Aging" DataNavigateUrlFormatString="MatchInvoice.aspx?aging={0}">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:HyperLinkField>
                        <asp:BoundField DataField="TotalPendingInvoices" HeaderText="Total Pending Invoices">
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TotalAmount" HeaderText="Total Amount">
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
            </td>
            <td valign="top" style="width: 50%" align="center">
                <asp:GridView ID="LineChartDataGrid" runat="server" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" AutoGenerateColumns="False" ViewStateMode="Disabled" EnableViewState="False">
                    <Columns>
                        <asp:BoundField DataField="PendingInvoice" HeaderText="Analysis of Pending Invoices">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="InvoiceCount" HeaderText="Invoice Count">
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                        <asp:BoundField DataField="InvoiceAmount" HeaderText="Invoice Amount">
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
